package demo1;

public class Test1 {
    public  int  a = 100;
    public static void main(String[] args) {
        //a = 1;  静态类中不能直接引用任何非静态类的成员变量或者成员方法
        char ch = '帅';
        System.out.println(ch);
        System.out.println(true);
        long a = 100L;
        int b = 1009;
        a = b;
        b = (int)a;  //强制类型转换
       // b = a;  错
        float f = 123.8f;
        double d = 234.88;
        //f = d; 错
        Test3 test2 = new Test3(23);
        System.out.println(test2.getYear());

    }
    public void fun(){}
}
